import time
from horse import Horse

h1 = Horse("赤兔", 5)
h2 = Horse("的卢", 9)

while True:
    h1.run()
    h2.run()

    x1 = h1.get_loc()
    x2 = h2.get_loc()
    print(x1-x2,"米")

    time.sleep(0.5)
